package com.lhq.dao;

import com.lhq.entity.Perms;
import com.lhq.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName UserDao
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/7/18 16:30
 * @Version V1.0
 **/
@Mapper
public interface UserDao {
    void save(User user);
    User findByUserName(String userName);
    //根据用户名查询所有角色
    User findRolesByUsername(String username);
    //根据角色id查询权限集合
    List<Perms> findPermsByRoleId(String id);

}
